﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.Common.Helper
{
    // 
    public static class OperatingSystem
    {
        // 
        public static OperatingSystemType GetOperatingSystemType()
        {
            OperatingSystemType result = OperatingSystemType.Windows;
            string a = Environment.OSVersion.Platform.ToString();
            if (!(a == "Win32NT"))
            {
                if (a == "Unix")
                {
                    result = OperatingSystemType.Linux;
                }
            }
            else
            {
                result = OperatingSystemType.Windows;
            }
            return result;
        }
    }
}
